package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;

import com.itheima.entity.Result;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

/**
 * @author yangzhen
 * @date 2020-01-12 15:48
 */
public interface RoleService {
    List<Role> findAll();

    PageResult findRoleByPage(QueryPageBean queryPageBean);


    Result add(Role role, Integer[] permissionIds);

    Map findRoleById(Integer id);

    void edit(Role role, Integer[] permissionIds);

    Result dele(Integer id);
}
